package org.cedar.syntaxcore;

/**
 * <p>Title: </p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2005</p>
 * <p>Company: </p>
 * @author net.wzh
 * @version 1.0
 */

public class VariantType {
  public VariantType() {
  }
  public final static  int vtUnknow = 0;
  public final static  int vtBool = 1;
  public final static  int vtInt = 2;
  public final static  int vtDouble = 3;
  public final static  int vtString = 4;
  public final static  int vtDateTime = 5;
  public final static  int vtVariant = 6;
  public final static  int vtLong = 7;
  public final static String getVariantTypeTitle(int type){
      switch(type){
        case vtUnknow:
            return "未知类型";
        case vtString:
            return "字符串";
        case vtInt:
            return "整型";
        case vtDouble:
            return "浮点";
        case vtLong:
        	return "长整型";
        case vtBool:
            return "布尔";
        case vtDateTime:
            return "日期";
        case vtVariant:
            return "变量";
      }
      return "未知类型";
  }
}
